package com.jkc.xh.adapters;

import android.view.ViewGroup;

import com.jkc.xh.adapters.core.BaseRecyclerAdapter;
import com.jkc.xh.adapters.viewholder.MessageItemView;
import com.jkc.xh.adapters.viewholder.MessageItemView_;
import com.jkc.xh.models.MessageModel;

/**
 * Created by macintosh on 15/11/17.
 */
public class MessageAdapter extends BaseRecyclerAdapter<MessageModel, MessageItemView> {
    @Override
    protected MessageItemView onCreateItemView(ViewGroup parent, int viewType) {
        return MessageItemView_.build(parent.getContext());
    }

    @Override
    protected void onBindView(MessageItemView itemView, MessageModel orderModel, int position) {
        itemView.bind(orderModel);
    }
}
